# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class KickstartItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class CtripCity(scrapy.Item):
    cname = scrapy.Field()
    pinyin = scrapy.Field()
    cid = scrapy.Field()
    group = scrapy.Field()

class CtripCityHTML(scrapy.Item):
    cid = scrapy.Field()
    pageid = scrapy.Field()
    url = scrapy.Field()
    html = scrapy.Field()


class CtripHotel(scrapy.Item):
    id = scrapy.Field()
    cid = scrapy.Field()
    cname = scrapy.Field()
    ename = scrapy.Field()
    address = scrapy.Field()
    zid = scrapy.Field()
    score = scrapy.Field()

class CtripHotelHTML(scrapy.Item):
    cid = scrapy.Field()
    hotelid = scrapy.Field()
    url = scrapy.Field()
    html = scrapy.Field()

class CtripHotelCommentHTML(scrapy.Item):
    hotelid = scrapy.Field()
    pageid = scrapy.Field()
    url = scrapy.Field()
    html = scrapy.Field()

class CtripHotelComment(scrapy.Item):
    hotelid = scrapy.Field()
    date = scrapy.Field()
    comment = scrapy.Field()
    score = scrapy.Field()
    uname = scrapy.Field()

class CtripHotelPIC(scrapy.Item):
    hotelid = scrapy.Field()
    url = scrapy.Field()
    pic = scrapy.Field()

#####class for sight related

class CtripCitySightHTML(scrapy.Item):
    url = scrapy.Field()
    cid = scrapy.Field()
    pageid = scrapy.Field()
    html = scrapy.Field()

class CtripSight(scrapy.Item):
    cid = scrapy.Field()
    sid= scrapy.Field()
    cname = scrapy.Field()
    ename = scrapy.Field()
    score = scrapy.Field()
    intro = scrapy.Field()
    address = scrapy.Field()

class CtripSightHTML(scrapy.Item):
    cid = scrapy.Field()
    sid = scrapy.Field()
    url = scrapy.Field()
    html = scrapy.Field()

class CtripSightComment(scrapy.Item):
    cid = scrapy.Field()
    sightid= scrapy.Field()
    comment = scrapy.Field()
    uname = scrapy.Field()
    traveldate = scrapy.Field()
    commentdate = scrapy.Field()
    score = scrapy.Field()
    scoretext = scrapy.Field()

class CtripSightCommentHTML(scrapy.Item):
    cid = scrapy.Field()
    sightid = scrapy.Field()
    url = scrapy.Field()
    html = scrapy.Field()
    pageid = scrapy.Field()

class CtripSightPic(scrapy.Item):
    cid = scrapy.Field()
    sightid = scrapy.Field()
    url = scrapy.Field()
    pic = scrapy.Field()

class CtripContinent(scrapy.Item):
    conid = scrapy.Field()
    conname = scrapy.Field() 

class CtripCountry(scrapy.Item):
    conid = scrapy.Field()
    countryid = scrapy.Field()
    ccname = scrapy.Field()
    cename = scrapy.Field()
    url = scrapy.Field()

class CtripChinaPlace(scrapy.Item):
    pid = scrapy.Field()
    pname = scrapy.Field()
    url = scrapy.Field()

class CtripYouji(scrapy.Item):
    url   = scrapy.Field()
    user  = scrapy.Field()
    date  = scrapy.Field()
    title = scrapy.Field()
    place = scrapy.Field()
    content = scrapy.Field()
